import platform
import subprocess

def get_startupinfo():
    """获取无窗口进程的startupinfo"""
    startupinfo = None
    if platform.system() == "Windows":
        startupinfo = subprocess.STARTUPINFO()
        startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
    return startupinfo